package study.spring.cloud;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class ControllerDemo {

  @GetMapping("/hystrix")
  @HystrixCommand()
  public String testHystrix() {
    return "成功返回数据";
  }


}
